/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.squirrelm.my.service.impl;

import com.google.appengine.repackaged.org.apache.http.HttpResponse;
import com.google.appengine.repackaged.org.apache.http.client.methods.HttpGet;
import com.google.appengine.repackaged.org.apache.http.impl.client.DefaultHttpClient;
import com.google.appengine.repackaged.org.apache.http.util.EntityUtils;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.squirrelm.my.dao.JipiaoDao;
import org.squirrelm.my.domain.Jipiao;
import org.squirrelm.my.service.JipiaoService;

/**
 *
 * @author 松鼠M
 */
@Service
public class JipiaoServiceImpl implements JipiaoService {

    @Autowired
    private JipiaoDao   jipiaoDao;

    public void create(Jipiao jipiao) {
        jipiaoDao.create(jipiao);
    }

    public List<Jipiao> find(int offset, int num) {
        return jipiaoDao.find(offset, num);
    }

}
